<script setup>
import { useRouter } from "vue-router";
const router = useRouter();

const back = () => {
  // 返回到主页
  router.push("home");
}
</script>

<template>
  <el-result
      icon="success"
      title="支付成功"
      sub-title="您的订单已经提交，请点击按钮返回主页"
  >
    <template #extra>
      <el-button type="primary" @click="back">回到主页</el-button>
    </template>
  </el-result>
</template>

<style scoped>

</style>